

Pod::Spec.new do |s|
  s.name             = "BCDebugKit"
  s.version          = "1.0.0"
  s.summary          = "IOS 调试工具 组件"
  s.description      = <<-DESC.gsub(/^\s*\|?/,'')
                       An optional longer description of Huihui Health

                       | * Markdown format.
                       | * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://gitlab.leke.cn/health-huihui/app/ios/ios-component/BCDebugKit.git"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'BSD'
  s.author           = { "chasel" => "chenchun1@cnstrong.cn" }
  s.source           = { :git => "git@gitlab.leke.cn:health-huihui/app/ios/ios-component/BCDebugKit.git"}
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.platform     = :ios, '8.0'
  s.requires_arc = true

  s.default_subspec = 'Core'

  # Debug Item
  s.subspec 'Core' do |core|
    core.public_header_files = 'Core/**/**.h'
    core.source_files = 'Core/**/*.{h,m}'
  end
  
   # 核心库
   s.subspec 'Pannel' do |pannel|
     pannel.public_header_files = 'Pannel/**/BCDebugKit.h', 'Pannel/**/BCDebugCom.h', 'Pannel/**/BCDebugKitPublic.h', 'Pannel/**/BCDebugEnvConfig.h'
     pannel.source_files = 'Pannel/**/*.{h,m}'
     pannel.dependency 'BCFoundation'
     pannel.dependency 'BCDebugKit/Core'
     pannel.dependency 'BCDebugKit/User'
     pannel.dependency 'BCDebugKit/Device'
     
     pannel.resource = 'Assets/BCDebugKit.bundle'
   end

   
   # 用户信息面板
   s.subspec 'User' do |user|
     user.public_header_files = 'User/BCDebugUserHeader.h'
     user.source_files = 'User/**/*.{h,m}'
     user.dependency 'BCDebugKit/Core'
   end
   
   # 设备信息面板
   s.subspec 'Device' do |device|
     device.public_header_files = 'Device/BCDebugDeviceHeader.h, Device/BCDebugDeviceConfig.h'
     device.source_files = 'Device/**/*.{h,m}'
     device.dependency 'BCDebugKit/Core'
   end
  
   # fps
   s.subspec 'Apm' do |apm|
     apm.public_header_files = 'Apm/BCDebugFpsHeader.h'
     apm.source_files = 'Apm/**/*.{h,m}'
     apm.dependency 'BCDebugKit/Core'
   end
   
   # 文件管理
   s.subspec 'File' do |file|
     file.public_header_files = 'File/BCDebugFileHeader.h'
     file.source_files = 'File/**/*.{h,m}'
     file.dependency 'BCDebugKit/Core'
     file.dependency 'BCDebugKit/Pannel'
   end

end
